Optimal. Leaf size=16 \[ a x+\frac{b \tanh ^{-1}(\sin (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0081961, antiderivative size = 16, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.1, Rules used = {3770} \[ a x+\frac{b \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rubi steps
\begin{align*} \int (a+b \sec (c+d x)) \, dx &=a x+b \int \sec (c+d x) \, dx\\ &=a x+\frac{b \tanh ^{-1}(\sin (c+d x))}{d}\\ \end{align*}
Mathematica [A] time = 0.0015626, size = 16, normalized size = 1. \[ a x+\frac{b \tanh ^{-1}(\sin (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 24, normalized size = 1.5 \begin{align*} ax+{\frac{b\ln \left ( \sec \left ( dx+c \right ) +\tan \left ( dx+c \right ) \right ) }{d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.20236, size = 31, normalized size = 1.94 \begin{align*} a x + \frac{b \log \left (\sec \left (d x + c\right ) + \tan \left (d x + c\right )\right )}{d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.03651, size = 95, normalized size = 5.94 \begin{align*} \frac{2 \, a d x + b \log \left (\sin \left (d x + c\right ) + 1\right ) - b \log \left (-\sin \left (d x + c\right ) + 1\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.67693, size = 41, normalized size = 2.56 \begin{align*} a x + b \left (\begin{cases} \frac{\log{\left (\tan{\left (c + d x \right )} + \sec{\left (c + d x \right )} \right )}}{d} & \text{for}\: d \neq 0 \\\frac{x \left (\tan{\left (c \right )} \sec{\left (c \right )} + \sec ^{2}{\left (c \right )}\right )}{\tan{\left (c \right )} + \sec{\left (c \right )}} & \text{otherwise} \end{cases}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.27521, size = 66, normalized size = 4.12 \begin{align*} a x + \frac{b{\left (\log \left ({\left | \frac{1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right ) + 2 \right |}\right ) - \log \left ({\left | \frac{1}{\sin \left (d x + c\right )} + \sin \left (d x + c\right ) - 2 \right |}\right )\right )}}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]